libxc: xc_physdev_map return -1 and populate errno.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 19 Mar 2015 00:24:10 +0000 (20:24 -0400)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 20 Mar 2015 16:04:35 +0000 (16:04 +0000)
commit479dab849873830184e3b53a903a3d3246b48e1a
treeaf38ac5b2bb934b97b71d9b5c0b0b3bc565b19a5
parent21aa87829b06606692390207781f58edf6286318
libxc: xc_physdev_map return -1 and populate errno.

The users of these (qemu) check for a negative value
so we are safe in regards to that. However they
also use the return value to inform the user of the
error.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xc_physdev.c